<div id="content">
    <div id="title_content">Modifier Contenu</div>
    <form method="POST" action="<?php echo site_url('admin_content/update_page') . '/' . $query->page . '/' . $query->id; ?>">
        <table class="form_content" width="100%">
            <tr>
                <td>Titre <span style="color:red">*</span></td><td>
                    <?php if (form_error('title') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('title'), '<p>', '</p>'); ?></div> <?php } ?>
                    <input type="text" name="title" class="form_input" value="<?php echo set_value('title', $query->title) ?>"/>
                </td>
            </tr>

            <tr>
                <td>Contenu <span style="color:red">*</span></td><td>
                    <?php if (form_error('content') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('content'), '<p>', '</p>'); ?></div> <?php } ?>
                    <?php
                    $data = array(
                        'name' => 'content',
                        'id' => 'content',
                        'height' => 400,
                        'width' => 610,
                        'value' => html_entity_decode(set_value('content', $query->content)),
                        'type' => 'text'
                    );
                    echo form_fckeditor($data);
                    ?>
                </td>
            </tr>

            <tr>
                <td></td><td>
                    <input type="submit" name="submit" class="submit" value="Enregistrer"/>
                    <input type="button" name="button" class="submit" value="Annuler et revenir" onclick="document.location.href='<?php echo site_url('admin_news/list_cat') ?>'"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<!--END content-->
